package com.shareit.ocr.enums;

public enum ResultEnum {
	SUCCESS(0,"success"),
	UNKOWN_ERROR(-1,"服务器内未知错误"),
	PAGE_ERROR(-2,"解析发票完整数据发生错误"),
	INVOICE_FPDM_ERROR(-1001,"发票代码错误"),
	INVOICE_FPHM_ERROR(-1002,"发票号码有误"),
	INVOICE_FPRQ_ERROR(-1003,"开票日期有误"),
	INVOICE_HJJE_ERROR(-1004,"合计金额有误"),
	INVOICE_TAX_ERROR(-1005,"不含税价有误"),
	INVOICE_KPJE_ERROR(-1006,"开票金额有误"),
	VALID_ERROR(-2001,"发票验证错误"),
	VALID_FPTYPE_ERROR(-2002,"发票类型不允许查验"),
	INVOICE_VERIFY_NOT_OPEN(-9001,"该省尚未开通发票查验功能"),
	INVOICE_VERIFY_NO_COUNT(-9002,"超过该张发票当日查验次数(请于次日再次查验)"),
	INVOICE_VERIFY_SEQUENCE(-9003,"发票查验请求太频繁，请稍后再试"),
	INVOICE_VERIFY_MAX_CONNECT(-9004,"超过服务器最大请求数，请稍后访问"),
	INVOICE_VERIFY_NOT_ILLEGAL(-9005,"请求不合法"),
	INVOICE_VERIFY_NOT_ALLOW(-9020,"由于查验行为异常，涉嫌违规，当前无法使用查验服务"),
	INVOICE_VERIFY_NOT_CORRECT(-9006,"发票验证不一致"),
	INVOICE_VERIFY_NOT_YZM_AVALIABLE(-9007,"验证码失效"),
	INVOICE_VERIFY_NOT_YZM_CORRECT(-9008,"验证码不正确"),
	INVOICE_VERIFY_NOT_EXIST(-9009,"查无此票"),
	INVOICE_VERIFY_NOT_CONNECT(-9010,"网络超时,请重试");
	;
	private int code;
	
	private String message;
	
	
	ResultEnum(Integer code,String message){
		this.code = code;
		this.message = message;
	}
	
	
	
	public int getCode() {
		return this.code;
	}
	
	public String getMessage() {
		return this.message;
	}
}
